Learn R Programming

timsr (version 0.0.3)

[,TimsR,ANY,character-method: Get some frames of data.

Description

Get some frames of data.

Usage

# S4 method for TimsR,ANY,character
[(x, i, j)

Arguments

x

OpenTIMS data instance.

i

An array of nonzero frame numbers to extract.

j

A vector of strings with column names to extract.

Value

data.table

Examples

Run this code
# NOT RUN {
D = TimsR('path/to/your/folder.d')
all_cols = c('frame','scan','tof','intensity',
             'mz','inv_ion_mobility','retention_time')
print(D[c(1,20, 53), all_cols]
# extracted all columns

print(D[c(1,20, 53), c('scan','intensity')]
# only 'scan' and 'intensity'
# }

Run the code above in your browser using DataLab